package resource.service;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import resource.dao.UserDao;

//        名字
@Service(value = "myUserService")
public class UserServiceImpl implements UserService {

//    属性名  myUserDao↓ 与对象名一致
    @Resource
    private UserDao myUserDao;
    @Override
    public void add() {
        System.out.println("Service执行");
    }
}
